package com.wowo.c3p0;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.wowo.c3p0.C3p0Util;
import java.sql.Connection;
import java.sql.SQLException;

public class UserDao {


    public static void main(String[] args) throws SQLException {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("c3p0/c3p0.xml");
        C3p0Util c3p0Util = applicationContext.getBean(C3p0Util.class);
        System.out.println(c3p0Util.getDBConntection());

    }

}
